package lab.anoper.fsm.fsm;

/**
 * 支付订单状态枚举
 * @author Yan Jiahong
 * Created at 2020/9/29
 */
public enum  PayOrderState {
    CREATED(0, "支付订单已创建"),
    PAYING(1, "支付订单正在支付"),
    PAY_SUCCESS(2, "支付订单已支付成功"),
    PAY_FAIL(3, "支付订单已支付失败"),
    VOIDED(99, "支付订单已作废");

    private int status;
    private String desc;

    PayOrderState(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public int getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }
}
